﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class TrangChu_Index : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        var th =new System.Web.UI.Control();
        if (Request.QueryString["MaSP"] != null)
        {
            th = Page.LoadControl("~/ConTrol/ChiTietSP.ascx");
          //  Response.Write("dfdsddddddddddddddd");
        }
        else
            if (Request.QueryString["MaKieu"] != null)
            {
                th = Page.LoadControl("~/ConTrol/HienThiSanPham.ascx");
                //   Response.Write("kkkkkkkkkkkkkkkkkkkkkkkkk");
            }
            else
            {
                th = Page.LoadControl("~/ConTrol/HienThiSanPham.ascx");
            }
        Panel1.Controls.Add(th);
    }
}